// SPDX-FileCopyrightText: 2025 citrus Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

#include <unistd.h>
#include <media/NdkImageReader.h>

class BackendWindow {
public:
    BackendWindow(int width, int height);

    ~BackendWindow();

    ANativeWindow* getNativeWindow();

private:
    static void OnImageUpdate(AHardwareBuffer* buffer);
    static void OnImageAvailable(AImageReader* reader);
    AImageReader* m_image_reader = nullptr;
};